package jsoncodec

import "encoding/json"

// type Codec interface {
// 	// Marshal returns the wire format of v.
// 	Marshal(v interface{}) ([]byte, error)
// 	// Unmarshal parses the wire format into v.
// 	Unmarshal(data []byte, v interface{}) error
// 	// String returns the name of the Codec implementation. The returned
// 	// string will be used as part of content type in transmission.
// 	String() string
// }
type Codec struct {
}

func (c *Codec) Marshal(v interface{}) ([]byte, error) {
	return json.Marshal(v)
}
func (c *Codec) Unmarshal(data []byte, v interface{}) error {
	return json.Unmarshal(data, v)
}
func (c *Codec) String() string {
	return "json"
}
